home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 2.2 KB | 64 lines | [TEXT/GEOL] |
- Item forwarded by A33 to A34
-
- Item 3383894 8-Nov-89 17:22
-
- From: D2086 Efficient Field Svc, C Faith,PRT
-
- To: D1382 MasterPlan, Chris Ovard,PRT
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: RE: TTEViews and TDialogViews
-
- Jeff,
-
- There are several reasons why you may not be getting the correct behavior.
-
- First of all ShowReverted does this:
-
- AdjustSize;
- ForceRedraw;
- EachSubView(RevertSubView);
-
- ShowReverted is not a good name here, it does not let the reader know what is
- happening. I think it is better from a code readability viewpoint to merely
- call AdjustSize and ForceRedraw seperately, especially as there is really no
- need to revert any subviews of the TTEView as it usually does not have any.
-
- When characters are added the size of the TTEView may change hence the call to
- AdjustSize is needed. Whenever the size can change and/or you change the
- contents you should call ForceRedraw.
-
- StuffText and SetText only change the data which belongs to the TTEView, hence
- the need for the additional calls. I think that there should be another
- parameter to these calls that would if true call AdjustSize and ForceRedraw
- automatically.
-
- If you want a tab to include the TTEView as part of its tabbing sequence you
- will have to either:
-
- 1) Use a special TEditText Instead that allows for more than one line.
-
- 2) Override the Tab method of TDialogView to include your TTEView in the
- sequence. You could do hilighting etc, you would also have to set the target
- to the TTEView there.
-
- TDialogview does not tab to TTEViews only TEditText descendants.
-
- In order for the TTEView to accept keystrokes it must be in the target chain,
- enabled and set to accept changes via the view resource acceptChanges
- identifier.
-
- In order for the mouse to have any effect the view must be enabled.
- MousePresses are not dependant on either the acceptChanges field or the target
- chain.
-
- I have used TTEViews in TDialogViews many times so there must be something
- wrong with what you have done.
-
- So check all the view resources to see that everything is OK. Let me know if
- that does not help.
-
- - Curtis
-
-